package com.arpa.wms.mapper;

import com.arpa.wms.domain.dto.CountingRegisterDTO;
import com.arpa.wms.domain.entity.CountingRegister;
import com.arpa.wms.domain.vo.CountingRegisterVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * 盘点登记 Mapper 接口
 * @author jinss
 * @date 2020-08-31 14:44:24
 **/
public interface CountingRegisterMapper extends BaseMapper<CountingRegister> {


    /**
     * 查询合计,包含总数
     * @param countingRegisterDTO
     * @return
     */
    CountingRegisterVO queryListSum(CountingRegisterDTO countingRegisterDTO);

    List<CountingRegisterVO> queryList(CountingRegisterDTO countingRegisterDTO);

    List<CountingRegisterVO> queryTaskDoneByCountCode(CountingRegisterDTO countingRegisterDTO);

    CountingRegisterVO checkConfirm(CountingRegisterDTO countingRegisterDTO);

    /**
     * 通过查询结果创建盘点登记明细
     * @param countingCode 盘点单号
     */
    void insertBatch(String countingCode);

}
